package com.kssoft.ebd.spider.test;

import com.kssoft.ebd.spider.common.PageModelType;
import com.kssoft.ebd.spider.common.PipelineUtils;
import org.springframework.stereotype.Component;
import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;


@Component
public class AnyuePipeline implements Pipeline {

    @Override
    public void process(ResultItems resultItems, Task task) {
        PipelineUtils.webResultItemsHashMap.put(PageModelType.Home, resultItems);
    }
}
